package logic

import (
	"frame/logger/HLogger"
	"strconv"
	"frame/logic/LogicModule"
)

var logger = HLogger.GetHLogger("Logic.init")

func init(){
	var result bool
	var err error
	result,err = LogicModule.RegisterLogic(LoginLogicModule)
	if(result == false) {
		logger.Error("Logic注册失败["+err.Error()+"]")
		panic(err)
	}
	logger.Info("初始化成功"+strconv.Itoa(LogicModule.GetLogicModulesCount())+"个logic")
}